#ifndef _MONITOR_H_
#define _MONITOR_H_

ECMBOOL reg_monitor(ebc_ndid_t ndid_monitor, ebc_mdid_t mdid_monitor, ebc_ndid_t ndid_target, ebc_mdid_t mdid_target, ecm_uint32 *pseq, ECMBOOL *palive);
void unreg_monitor(ebc_ndid_t ndid_monitor, ebc_mdid_t mdid_monitor, ebc_ndid_t ndid_target, ebc_mdid_t mndid_target);

ecm_ptr_t create_lmoninfo(void);
void destroy_lmoninfo(ecm_ptr_t lmoninfo);

ecm_ptr_t create_emoninfo(void);
void destroy_emoninfo(ecm_ptr_t emoninfo);

void setup_moninfo(ebcd_pch_t *dpch, ECMBOOL alive);
void lnotify_emonitor(ebc_mdid_t mdid_monitor,
		      ebc_ndid_t ndid_target,
		      ebc_mdid_t mdid_target,
		      ecm_uint32 seq,
		      ECMBOOL alive);

#endif
